/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Role Class Inactive Ingredient</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S19089 (C-0-T11555-S13940-A10429-S10430-S19089-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRoleClassInactiveIngredient()
 * @model extendedMetaData="name='RoleClassInactiveIngredient'"
 * @generated
 */
public enum RoleClassInactiveIngredient implements Enumerator {
	/**
	 * The '<em><b>IACT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #IACT_VALUE
	 * @generated
	 * @ordered
	 */
	IACT(0, "IACT", "IACT"),

	/**
	 * The '<em><b>COLR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COLR_VALUE
	 * @generated
	 * @ordered
	 */
	COLR(1, "COLR", "COLR"),

	/**
	 * The '<em><b>FLVR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FLVR_VALUE
	 * @generated
	 * @ordered
	 */
	FLVR(2, "FLVR", "FLVR"),

	/**
	 * The '<em><b>PRSV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PRSV_VALUE
	 * @generated
	 * @ordered
	 */
	PRSV(3, "PRSV", "PRSV"),

	/**
	 * The '<em><b>STBL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #STBL_VALUE
	 * @generated
	 * @ordered
	 */
	STBL(4, "STBL", "STBL");

	/**
	 * The '<em><b>IACT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>IACT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #IACT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int IACT_VALUE = 0;

	/**
	 * The '<em><b>COLR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>COLR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COLR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int COLR_VALUE = 1;

	/**
	 * The '<em><b>FLVR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FLVR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FLVR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FLVR_VALUE = 2;

	/**
	 * The '<em><b>PRSV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PRSV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PRSV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PRSV_VALUE = 3;

	/**
	 * The '<em><b>STBL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>STBL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #STBL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int STBL_VALUE = 4;

	/**
	 * An array of all the '<em><b>Role Class Inactive Ingredient</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RoleClassInactiveIngredient[] VALUES_ARRAY =
		new RoleClassInactiveIngredient[] {
			IACT,
			COLR,
			FLVR,
			PRSV,
			STBL,
		};

	/**
	 * A public read-only list of all the '<em><b>Role Class Inactive Ingredient</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RoleClassInactiveIngredient> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Role Class Inactive Ingredient</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RoleClassInactiveIngredient get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RoleClassInactiveIngredient result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Role Class Inactive Ingredient</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RoleClassInactiveIngredient getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RoleClassInactiveIngredient result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Role Class Inactive Ingredient</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RoleClassInactiveIngredient get(int value) {
		switch (value) {
			case IACT_VALUE: return IACT;
			case COLR_VALUE: return COLR;
			case FLVR_VALUE: return FLVR;
			case PRSV_VALUE: return PRSV;
			case STBL_VALUE: return STBL;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RoleClassInactiveIngredient(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RoleClassInactiveIngredient
